package com.order.manager.Model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName sender_examine_info
 */
@TableName(value ="sender_examine_info")
@Data
public class SenderExamineInfo implements Serializable {
    /**
     * 配送员id
     */
    @TableId
    private String senderId;

    /**
     * 身份证图片
     */
    private String idcardImg;

    /**
     * 学生证图片
     */
    private String studentImg;

    /**
     * 手机号
     */
    private String phone;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SenderExamineInfo other = (SenderExamineInfo) that;
        return (this.getSenderId() == null ? other.getSenderId() == null : this.getSenderId().equals(other.getSenderId()))
            && (this.getIdcardImg() == null ? other.getIdcardImg() == null : this.getIdcardImg().equals(other.getIdcardImg()))
            && (this.getStudentImg() == null ? other.getStudentImg() == null : this.getStudentImg().equals(other.getStudentImg()))
            && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSenderId() == null) ? 0 : getSenderId().hashCode());
        result = prime * result + ((getIdcardImg() == null) ? 0 : getIdcardImg().hashCode());
        result = prime * result + ((getStudentImg() == null) ? 0 : getStudentImg().hashCode());
        result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", senderId=").append(senderId);
        sb.append(", idcardImg=").append(idcardImg);
        sb.append(", studentImg=").append(studentImg);
        sb.append(", phone=").append(phone);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}